package com.placedial;

public class Node {
	
	private Node leftNode;
	private GraphP value;
	private Node rightNode;
	
	
	public Node(GraphP value) {
		super();
		this.value = value;
		leftNode=null;
		rightNode=null;
	}
	public Node(Node leftNode, GraphP value, Node rightNode) {
		super();
		this.leftNode = leftNode;
		this.value = value;
		this.rightNode = rightNode;
	}
	public Node getLeftNode() {
		return leftNode;
	}
	public void setLeftNode(Node leftNode) {
		this.leftNode = leftNode;
	}
	public Node getRightNode() {
		return rightNode;
	}
	public void setRightNode(Node rightNode) {
		this.rightNode = rightNode;
	}
	public GraphP getValue() {
		return value;
	}
	public void setValue(GraphP value) {
		this.value = value;
	}
	

}
